package vn.orderonline.core.dao.entity;

import java.sql.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "ADMIN")
public class Admin implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer adminId;
	private String adminName;
	private String adminEmail;
	private String adminLoginId;
	private String adminPassword;
	private Date adminBirthday;
	private Boolean adminGender;
	private String phoneNumber;
	private Integer cityId;
	private Integer districtId;
	private String createId;
	private Timestamp createTime;
	private String updateId;
	private Timestamp updateTime;
	private Integer roleId;

	public Admin() {
		
	}

	@Id
	@GeneratedValue
	@Column(name = "ADMIN_ID", unique = true, nullable = false, scale = 0, precision = 10)
	public Integer getAdminId() {
		return adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	@Column(name = "ADMIN_NAME", nullable = false)
	public String getAdminName() {
		return adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	@Column(name = "ADMIN_EMAIL", nullable = false)
	public String getAdminEmail() {
		return adminEmail;
	}

	public void setAdminEmail(String adminEmail) {
		this.adminEmail = adminEmail;
	}

	@Column(name = "ADMIN_LOGIN_ID", nullable = false)
	public String getAdminLoginId() {
		return adminLoginId;
	}

	public void setAdminLoginId(String adminLoginId) {
		this.adminLoginId = adminLoginId;
	}

	@Column(name = "ADMIN_PASSWORD", nullable = false)
	public String getAdminPassword() {
		return adminPassword;
	}

	public void setAdminPassword(String adminPassword) {
		this.adminPassword = adminPassword;
	}
	
	@Column(name = "ADMIN_BIRTHDAY")
	public Date getAdminBirthday() {
		return adminBirthday;
	}

	public void setAdminBirthday(Date adminBirthday) {
		this.adminBirthday = adminBirthday;
	}

	@Column(name = "ADMIN_GENDER")
	public Boolean getAdminGender() {
		return adminGender;
	}

	public void setAdminGender(Boolean adminGender) {
		this.adminGender = adminGender;
	}

	@Column(name = "PHONE_NUMBER", length = 20)
	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	@Column(name = "CITY_ID", precision = 11, scale = 0)
	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	@Column(name ="DISTRICT_ID", precision = 11, scale = 0)
	public Integer getDistrictId() {
		return districtId;
	}

	public void setDistrictId(Integer districtId) {
		this.districtId = districtId;
	}

	@Column(name = "CREATE_TIME", nullable = false)
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "UPDATE_TIME", nullable = true)
	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "CREATE_ID", nullable = false)
	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	@Column(name = "UPDATE_ID")
	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	@Column(name = "ROLE_ID", precision = 10, scale = 0)
	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
}
